home *** CD-ROM | disk | FTP | other *** search
/ Champak 109 / Vol 109.iso / games / stepp000.swf / scripts / DefineSprite_1424 / frame_78 / DoAction.as
Text File  |  2008-11-12  |  490b  |  27 lines

  1. if(eval("/Variables:Porte") == 2)
  2. {
  3.    tellTarget("_root.Porte.PorteBarree")
  4.    {
  5.       play();
  6.    }
  7. }
  8. else if(eval("/Variables:Porte") == 1)
  9. {
  10.    set("/Variables:GardeEntre","OuvrePorte");
  11.    tellTarget("_root.Animatiques")
  12.    {
  13.       gotoAndStop("OuvrePorte");
  14.    }
  15.    stop();
  16. }
  17. else
  18. {
  19.    set("/Variables:GardeEntre","GardesSorts");
  20.    tellTarget("_root.Animatiques")
  21.    {
  22.       gotoAndStop("GardesSorts");
  23.    }
  24.    stop();
  25. }
  26. set("/Variables:PorteDefonce",true);
  27.